import request from '@/utils/request'

// 新增自动组卷模板
export function addselfePaper(data) {
  return request({
    url: '/paper/paperAutoTemp',
    method: 'post',
    data: data
  })
}
//获取自动组卷模板详情
export function getautoPaperdetail(id) {
  return request({
    url: '/paper/paperAutoTemp/getAutoTemp/'+id,
    method: 'get',
  })
}
//查询自动组卷模板
export function listautoPaper(query) {
  return request({
    url: '/paper/paperAutoTemp/list',
    method: 'get',
    params: query
  })
}

// 获取章节信息
export function getChapte(query) {
    return request({
      url: '/topic/questionbank/getChapter',
      method: 'get',
      params: query
    })
  }
//   获取一级知识点信息
export function getKnowledgeA(query) {
    return request({
      url: '/topic/questionbank/getKnowledgeA',
      method: 'get',
      params: query
    })
  }
//   获取2级知识点信息
  export function getKnowledgeB(query) {
    return request({
      url: '/topic/questionbank/getKnowledgeB',
      method: 'get',
      params: query
    })
  }
//   获取考察知识点信息
  export function getInvestigateKnow(query) {
    return request({
      url: '/topic/questionbank/getInvestigateKnow',
      method: 'get',
      params: query
    })
  }
// * 获取认知分类数据
  export function getCategorization(query) {
    return request({
      url: '/topic/questionbank/getCategorization',
      method: 'get',
      params: query
    })
  }
  // * 难度
  export function getDifficulty(query) {
    return request({
      url: '/topic/questionbank/getDifficulty',
      method: 'get',
      params: query
    })
  }